#include <iostream>
using namespace std;

int func(int n)
{
    if (n >= 10 && n <= 100)
    {
        return 0;
    }
    else if (n > 100)
    {
        throw "error";
    }
    else if(n < 10)
    {
        throw 1.12;
    }
    
}

int main()
{
    int n;
    cin >> n;
    try
    {
        func(n);
        cout << "运行成功" << endl;
    }
    catch (const char *e)
    {
        cout << "捕捉到字符串类型的异常: " << e << endl;
    }
    catch (double e)
    {
        cout << "捕捉到浮点型异常: " << e << endl;
    }

    return 0;
}